package com.human.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.human.entity.Emp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jzq
 * @since 2023-02-14
 */
@Mapper
public interface EmpMapper extends BaseMapper<Emp> {

    IPage<Emp> getEmpAndDept(IPage<Emp> page, String name);

    List<Emp> queryEmpByName(String name);

    Emp getEmpById(Integer id);

    Integer getRestNum();

    Integer getWorkNum();

    Integer getLeaveNum();

}
